<div class= "full_width">
	<h3><?php __('Danh sách nhóm thành viên');?></h3>
	<p>
		<?php
		echo $this->Paginator->counter(array(
		'format' => __('Có tổng cộng %count% nhóm', true)
		));
		?>	
	</p>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th>STT</th>
			<th><?php echo $this->Paginator->sort('Tên nhóm','name');?></th>
			<th>Số thành viên</th>
	</tr>
	<?php
	$i = 1;
	foreach ($groups as $group):	?>
	<tr>
		<td><?php echo $i++; ?></td>
		<td><?php echo $html->link($group['Group']['name'], array('controller' => 'groups', 'action' => 'view', $group['Group']['id'])); ?>&nbsp;</td>
		<td><?php echo count($group['User']); ?></td>
	</tr>
	<?php endforeach; ?>
	</table>
	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
		| 	
		<?php echo $this->Paginator->numbers();?>
		|
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
